<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2021/11/26
  Time: 14:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>精品产品页</title>
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/app/css/publice.css"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/app/css/style.css"/>
    <link rel="stylesheet" href="<%=path %>/web/app/css/swiper.min.css">
    <script src="<%=path %>/web/app/js/jquery-1.10.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        fnResize();
        var evt = "onorientationchange" in window ? "orientationchange" : "resize";
        window.addEventListener("resize", function() {
            fnResize()
        }, false);
        function fnResize(){
            var docWidth = document.documentElement.clientWidth,
                body = document.getElementsByTagName('html')[0];
            if(docWidth >= 750) docWidth = 749;
            body.style.fontSize = docWidth / 20 + 'px';
        }
    </script>
    <script src="<%=path %>/web/app/js/swiper.min.js"></script>
    <script type="text/javascript" src="<%=path %>/web/app/js/jquery.js" ></script>
    <script type="text/javascript" src="<%=path %>/web/app/js/style.js" ></script>
    <script type="text/javascript" src="<%=path %>/web/app/js/jquery.SuperSlide.2.1.1.js" ></script>

    <script type="text/javascript">
        function doshop(id,num,money){
            if(num>0) {

                window.location.href = "money_shop_buy_shops?shopid=" + id + "&money=" + money;
            }else {
                alert("不好意思，您还没开卡，请先联系管理员办理开卡业务再来进行理财购买！");
            }
        }



        function check_msg(){
            var msg = "${msg }";
            if(msg=="success"){
                alert("购买成功，请到‘我的’里查看您所购买的记录！");
            }if(msg=="error"){
                alert("购买失败，您的金额不足，请充值！");
            }
        }

    </script>


</head>
<body onload="check_msg()">
<div class="ts-wrap">
    <!--top-->
    <div class="topWrap clearfix">
        <ul>
            <li><a href="javascript:;">精品产品</a></li>
        </ul>
    </div>
    <!--衣裤包箱-->
    <div class="general_partition">
        <div class="slideTxtBox_gener">
            <div class="bd">
                <ul>
                    <li>
                        ${table }
                    </li>
                </ul>

            </div>
        </div>
    </div>

    <!--固定底部 S-->
    <jsp:include page="/footer" ></jsp:include>
    <!--固定底部 E-->
</div>
</body>
</html>
<script type="text/javascript">
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        spaceBetween: 30,
    });
</script>
<script type="text/javascript">
    $('.more').click(function() {
        var html = '<dd style="display:none;" class="new"><a href="product_details.html"><img src="temp/general_pic1.png"><div class="wz"><h2>史密斯60升电热水器</h2><p>福粒兑换:<span>2048</span></p></div></a></dd>'
        html += html;
        html += html;
        $('.slideTxtBox_gener .bd dl').append(html);
        $('.slideTxtBox_gener .bd dl').find('.new').fadeIn(1000);
    });
</script>

